package com.chenyaowei.product.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class ProductCommentRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull
    private Long spuId;

    /**
     * 0 好评 1 中评 2 差评 3 有图 -1 全部
     * */
    @Min(-1)
    @Max(3)
    private Integer queryCondition;

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Integer getQueryCondition() {
        return queryCondition;
    }

    public void setQueryCondition(Integer queryCondition) {
        this.queryCondition = queryCondition;
    }
}
